Passing Parameters By Reference and By Value

Arguments can be passed to User-Defined Functions written in Visual Basic either ByRef or ByVal. ByRef is the default method for Visual Basic, but both methods will work. For instance, all of the following functions are valid:

    Public Function Test1 (num1 As Integer) As Integer
    Public Function Test1 (ByRef num1 As Integer) As Integer
    Public Function Test1 (ByVal num1 As Integer) As Integer


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com